package Behavioral.Observer.listener;

import java.util.EventObject;

//    事件对象：观察者与目标/被观察者之间通信的对象
public class MyEventObject extends EventObject {

    public MyEventObject(Object source){
        super(source);
    }

    public void doEvent(){
        System.out.println("通知一个事件源 source:"+this.getSource());
    }
}
